package com.dykj.fireFighting.web.service.impl;


import com.dykj.fireFighting.web.mapper.ManufactorMapper;
import com.dykj.fireFighting.web.model.Device;
import com.dykj.fireFighting.web.model.Manufactor;
import com.dykj.fireFighting.web.service.ManufactorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ManufactorServiceImpl implements ManufactorService {

    @Autowired
    private ManufactorMapper manufactorMapper;

    @Override
    public List<Manufactor> queryList(Map<String,Object> map){
        List<Manufactor> manufactors = manufactorMapper.queryList(map);
        return manufactors;
    }

    @Override
    public List<Manufactor> selectByIdentification(Map<String,Object> map){
        return manufactorMapper.selectByIdentification(map);
    }

    @Override
    public int updateStatusByIdentification(Manufactor record) {
        return manufactorMapper.updateStatusByIdentification(record);
    }

    @Override
    public Device selectDeviceById(String deviceId) {
        return manufactorMapper.selectDeviceById(deviceId);
    }

    @Override
    public int updateDevice(Device device) {
        return manufactorMapper.updateDevice(device);
    }

    @Override
    public Manufactor selectByPrimaryKey(String code){
        return manufactorMapper.selectByPrimaryKey(code);
    }

    @Override
    public Manufactor selectCreateBy(String code) {
        return manufactorMapper.selectCreateBy(code);
    }
}
